import {nanoid} from "nanoid";

export default function getUserTempId() {
    let tempId = localStorage.getItem('tempId')
    if (!tempId) {
        const localTempId = nanoid()
        localStorage.setItem('tempId', localTempId)
        tempId = localTempId
    }
    return tempId
}